package com.platform.modules.user.controller;


import com.platform.modules.user.entity.SysUserEntity;
import com.platform.modules.user.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 用户信息
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/system/user")
public class UserController
{
    @Autowired
    private SysUserService userService;

    @GetMapping("/get1")
    @ResponseBody
    public String user()
    {
        SysUserEntity sysUserEntity = userService.get();
        return sysUserEntity.toString();
    }

    @GetMapping("/get2")
    @ResponseBody
    public String user2()
    {
        SysUserEntity sysUserEntity = userService.get2();
        return sysUserEntity.toString();
    }
}